/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chapter5.creational.builder;

/**
 *
 * @author ASUS
 */
public class MealDirector {
    private MealBuilder mealBuilder = null;
    
    public MealDirector(MealBuilder mealBuilder)
    {
        this.mealBuilder = mealBuilder;
    }
    
    public void constructMeal()
    {
        mealBuilder.buildDrink();
        mealBuilder.builderCourse();
        mealBuilder.buildSide();
    }
    
    public Meal getMeal()
    {
        return mealBuilder.getMeal();
    }
}
